//
//  GlobalSet.h
//  JiCaiBao
//
//  Created by rgx on 16/10/21.
//  Copyright © 2016年 rgx. All rights reserved.
//

#ifndef GlobalSet_h
#define GlobalSet_h

//---------------------App版本---------------------------
#define APP_VERSION                 [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

//自定义高效率的 NSLog
#ifdef DEBUG
#define RGXLog(...) NSLog(@"%s 第%d行 \n %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])
#else
#define RGXLog(...)
#endif

#define kScreenSize           [[UIScreen mainScreen] bounds].size                 //(e.g. 320,480)
#define kScreenWidth          [[UIScreen mainScreen] bounds].size.width           //(e.g. 320)
#define kScreenHeight         [[UIScreen mainScreen] bounds].size.height          //包含状态bar的高度(e.g. 480)

#define ColorWithRGB(r,g,b) [UIColor colorWithRed:r/255. green:g/255. blue:b/255. alpha:1]

#define  lottery_ssq_id    @"SSQ"
#define  lottery_fc3d_id   @"D3"
#define  lottery_qlc_id    @"QLC"
#define  lottery_hbk3_id   @"HBP3"

/* 环境配置 */
#ifndef Configure_Environment
#define Configure_Environment 1  // 1:stg 测试环境 2:prd 生产环境 ...

/*********************stg环境*********************/
#if Configure_Environment== 1

#define Request_url   @"http://10.0.0.6:8000/apiNew.php"


/*********************prd环境*********************/
#elif Configure_Environment== 2

#define Request_url   @"http://10.0.0.6:8000/apiNew.php"


#endif

#endif

//接口地址
#define NewsScroll                    [NSString stringWithFormat:@"%@/news/scroll",Request_url]                 //轮播图接口
#define NewsList                      [NSString stringWithFormat:@"%@/news/newsList",Request_url]               //新闻列表
#define QueryPrizePool                [NSString stringWithFormat:@"%@/lottery/queryPrizePool",Request_url]      //奖池信息

#define QueryLastPrize                [NSString stringWithFormat:@"%@/lottery/getLastPrize",Request_url]        //最新一期开奖信息
#define QueryPrizes                   [NSString stringWithFormat:@"%@/lottery/queryPrizes",Request_url]         //开奖列表
#define QueryPrizeDetail              [NSString stringWithFormat:@"%@/lottery/queryPrizeDetail",Request_url]    //开奖详情
#define QueryCurrentIssue             [NSString stringWithFormat:@"%@/lottery/queryCurrentIssue",Request_url]   //当前期











#endif /* GlobalSet_h */
